package com.egao.common.module.validate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(description = "验证规则项")
@TableName("validate_rule_item")
@Data
public class ValidateRuleItem {

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("验证规则ID")
    private Integer validateRuleId;

    @ApiModelProperty("验证模块")
    private String module;

    @ApiModelProperty("规则项类型 0结果 1条件")
    private Integer category;

    @ApiModelProperty("字段描述")
    private String fieldTitle;

    @ApiModelProperty("字段标识")
    private String fieldName;

    @ApiModelProperty("规则值 逗号拼接")
    private String fieldValue;

    @ApiModelProperty("规则")
    private Integer rule;

    @ApiModelProperty(value = "分组", notes = "同组为并且条件 不同组为或者条件")
    private Integer grouping;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;
}
